/**
 * http://surenpi.com
 */
package autotest.web.framework.plugin;

/**
 * @author suren
 * @date Jul 23, 2016 11:31:20 AM
 */
public class BeanUtil
{
	/**
	 * 将java.lang.String转化为String
	 * @param str
	 * @return
	 */
	public static String getShortClass(String str){
		if(str == null){
			return str;
		}

		String result = str;
		int index = str.lastIndexOf(".");
		if(index != -1 && str.length() > 1){
			result = str.substring(index + 1);
		}

		return result;
	}
}
